home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / filutil / pa_st270.zip / EXAMPLE7.INF < prev    next >
Text File  |  1995-02-01  |  2KB  |  26 lines

  1. ===============================================================================
  2. ==========================                         ============================
  3. ==========================       EXAMPLE # 7       ============================
  4. ==========================                         ============================
  5. ===============================================================================
  6.  
  7. THE INPUT FILE:  A list of products available from Pinnacle Software.  In this
  8.                  list, the data has been put into columns using the tab (ASCII
  9.                  09) character.  If the tab width is 2 characters, the two
  10.                  columns of data line up nicely at positions 1 and 23.
  11.  
  12.                  When you look at the input, you'll notice that our little file
  13.                  viewer shows these characters as small circles, since that is
  14.                  what the IBM character set uses for ASCII 09.  Most word
  15.                  processors convert ASCII 09 to a tab, though they do not
  16.                  always use the same spacing (i.e. some treat ASCII 09 like
  17.                  3 spaces while some treat it like 8 spaces).
  18.  
  19. WHAT WE WANT:    Replace each tab character with two spaces.  Once the data is
  20.                  in neat columns, we can convert it to comma-delimited format.
  21.  
  22. HOW WE DO IT:    (1) We use CHANGE to change each tab character to two spaces.
  23.                  (2) We use SET to extract the columns.
  24.                  (3) We use TRIM to remove excess spaces.
  25.  
  26.